package com.szxy.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: zwz
 * @Date:2020/7/16 0:12
 * @Description:com.szxy.service.feign
 * @Version:1.0
 **/
@FeignClient("storage-service")
public interface StorageServiceFeign {

    /**
     * dePuct/{productName}/{count}
     * @return
     */
    @GetMapping("dePuct/{productName}/{count}")
    ResponseEntity<Void> dePuct(
            @PathVariable("productName") String productName,
            @PathVariable("count") int count);

}
